/**
 * 
 */
package com.cchr.acms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cchr.acms.dao.ReportingPersonDAO;
import com.cchr.acms.model.ReportingPerson;
import com.cchr.acms.service.ReportingPersonService;

/**
 * @author Zeng
 *
 */
@Service
public class ReportingPersonServiceImpl implements ReportingPersonService{
 
    @Autowired
    private ReportingPersonDAO reportingPersonDAO;
     
    public int insertReportingPerson(ReportingPerson user) {
        return reportingPersonDAO.insertReportingPerson(user);
    }
    
    public int updateReportingPerson(ReportingPerson user){
    	return reportingPersonDAO.updateReportingPerson(user);
    }
    
    public ReportingPerson getReportingPersonByCaseId(int caseId){
    	return reportingPersonDAO.getReportingPersonByCaseId(caseId);
    }

	public void deleteReportingPersonByCaseId(int caseId) {
		reportingPersonDAO.deleteReportingPersonByCaseId(caseId);
	}
}
